// 拿到轮播图数据
let oBannerList = document.querySelector(".banner-list")
let oNumber = document.querySelector(".number")
// 轮播图
// 拿到轮播图的数据
xz.ajax({
	url: BASE_URL + '/api_banner',
	data: {
		bannerId: 1
	},
	success(res) {
		if (res.code != 0) {
			console.log(res);
			return;
		};
		console.log(res)
		let data = res.data;
		// 遍历
		let strLi = ''
		let strSpan = ''
		// 拼接
		data.forEach(item => {
			strLi += `<li><a href=""><img src="${item.goods_thumb}" alt="" /></a></li>	`;
			strSpan += `<span></span>`;
		})
		oBannerList.innerHTML = strLi;
		oNumber.innerHTML = strSpan;

	}
})